
<form id="form" action="/index.php/Admin/AdminGroups/update" method="post">

<div class="pad-10">

	<div class="navigate">
		<h1>分组编辑</h1>

        <span class="ui-button ui-button-morange fr">
            <a class="ui-button-text fr" href="javascript:history.back(-1);">返回</a>
        </span>
  	</div>
  	
<div class="col-tab">
<ul class="tabBut cu-li">
	<li id="tab_setting_1" class="on"
		onclick="SwapTab('setting','on','',2,1);">分组编辑</li>
</ul>
<div id="div_setting_1" class="contentList pad-10">
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
	<tr>
		<th>分组编号:</th>
		<td>{$group.group_id}</td>
	</tr>

	<tr>
		<th width="100">分组名称:</th>
		<td><input type="text" name="group_name" id="group_name" class="input-text"
			value="{$group.group_name}" style="width:300px;">
			<span class="color-red" title="必填">*</span>
		</td>
	</tr>
	
	<tr>
		<th width="100">分组代码:</th>
		<td><input type="text" name="group_code" id="group_code" class="input-text"
			value="{$group.group_code}" style="width:300px;">
			<span class="color-red" title="必填">*</span>
		</td>
	</tr>
	
	<tr>
		<th width="100">权限:</th>
		<td>

            <input type="checkbox" id="check_all" />
            <label for="check_all">全选</label>

            <ul>
                <volist name="roles" id="r">

                    <include file="Admin:roles" />

                    <li>
                        <input type="checkbox" name="roles" id="roles_{$r.id}" value="{$r.role_value}" <if condition="$r.has_role eq true"> checked="checked"</if> />
                        <label for="roles_{$r.id}">[{$r.id}] - {$r.role_name}</label>
                    </li>
                </volist>
            </ul>


		</td>
	</tr>
	
</table>
</div>

<div class="bk15"></div>
<div class="btn"><input type="submit" class="button" value="保存修改" id="btnSave" />
</div>
</div>
</div>

<input type="hidden" name="group_id" value="{$group.group_id}" />
<input type="hidden" id="group_roles" name="group_roles" value="{$group.group_roles}" />

</form>


<script type="text/javascript" src="/Js/jquery.form.js"></script>
<script type="text/javascript" src="/Js/adm/admin_groups/detail.js"></script>